import request from '@/utils/request'

// 查询质量报检单列表
export function listNcQualityInspection(query) {
  return request({
    url: '/business/NcQualityInspection/list',
    method: 'get',
    params: query
  })
}

// 查询质量报检单详细
export function getNcQualityInspection(id) {
  return request({
    url: '/business/NcQualityInspection/' + id,
    method: 'get'
  })
}

// 新增质量报检单
export function addNcQualityInspection(data) {
  return request({
    url: '/business/NcQualityInspection',
    method: 'post',
    data: data
  })
}

// 修改质量报检单
export function updateNcQualityInspection(data) {
  return request({
    url: '/business/NcQualityInspection',
    method: 'put',
    data: data
  })
}

// 删除质量报检单
export function delNcQualityInspection(id) {
  return request({
    url: '/business/NcQualityInspection/' + id,
    method: 'delete'
  })
}
